package com.kws.merchant.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kws.merchant.domain.OperationPolling;
import com.kws.merchant.domain.po.DisposePollingPo;
import com.kws.merchant.domain.po.OperationPollingPo;
import com.kws.merchant.domain.po.PollingPo;

import java.util.List;

/**
 * 运维-巡检管理(OperationPolling)表服务接口
 *
 * @author yxy
 * @since 2024-10-28 11:32:39
 */
public interface OperationPollingService extends IService<OperationPolling> {

    /**
     * 分页查询列表
     */
    Page<OperationPolling> pageList(PollingPo pollingPo);

    /**
     * 删除数据
     * @param idList
     * @return
     */
    Object delete(List<Long> idList);

    /**
     * 查看
     * @param id
     * @return
     */
    OperationPolling detailById(Long id);

    /**
     * 新增巡检数据
     * @return
     */
    Object addPolling(OperationPollingPo operationPollingPo);

    /**
     * 处理巡检
     * @param disposePollingPo
     * @return
     */
    Object disposePolling(DisposePollingPo disposePollingPo);

    /**
     * 通过状态查询巡检
     * @param status
     * @return
     */
    List<OperationPolling> listByStatus(int status);

    /**
     * 查询商家所有巡检
     * @param companyId
     * @return
     */
    List<OperationPolling> listByMerchant(Long companyId);

    Double countWorkTypeBySql(Long companyId, String sql);
}
